export default {
    opened: (state) => state.app.slider.opened,
    token: (state) => state.app.token,
    access_token: (state) => state.app.access_token,
    refresh_token: (state) => state.app.refresh_token,
    zone_id: (state) => state.app.zone_id,
    zone_list: (state) => state.app.zone_list,
    user_id: (state) => state.app.user_id,
    uname: (state) => state.app.uname,
    menuList: (state) => state.app.menuList,
    permissionList: (state) => state.app.permissionList,
    moreMenuList: (state) => state.tabbar.moreMenuList,
    barList: (state) => state.tabbar.barList,
    hasClickMenuList: (state) => state.tabbar.hasClickMenuList,
    currentBar: (state) => state.tabbar.currentBar,
    visitedViews: (state) => state.tabbar.barList, // 添加访问过的视图
    cachedViews: (state) =>
        state.tabbar.barList
            .filter((item) => item.meta && item.meta.keepAlive)
            .map((item) => item.name), // 添加缓存视图，只缓存需要keepAlive的页面
    verification_code: (state) => state.app.verification_code,
    wechat_verification_code: (state) => state.app.wechat_verification_code,
    wechat_key_word: (state) => state.app.wechat_key_word,
    options: (state) => state.settings.options, // 编辑器配置
};
